home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CD Fun House 1
/
CD Fun House (Wayzata Technology).iso
/
•The School House•
/
QuizMaster v.10 •••
/
QuizMaster V1.0
/
QuizMaster V1.0.rsrc
/
CODE_12591_SavePicture.txt
< prev
next >
Wrap
Text File
|
1988-10-21
|
5KB
|
85 lines
# near model CODE resource
# this CODE claims to have no jump table entries (but starts at 0008)
00000000 4E56 FF00 link A6, -0x0100
00000004 4EAD 002A jsr [A5 + 0x2A /* export_1 */]
00000008 0C00 0003 cmpi.b D0, 0x3
0000000C 6600 00B2 bne +0xB4 /* 000000C0 */
00000010 3C12 move.w D6, [A2]
00000012 4EAD 002A jsr [A5 + 0x2A /* export_1 */]
00000016 0C00 0003 cmpi.b D0, 0x3
0000001A 6600 00A4 bne +0xA6 /* 000000C0 */
0000001E 3A12 move.w D5, [A2]
00000020 4EAD 002A jsr [A5 + 0x2A /* export_1 */]
00000024 0C40 0002 cmpi.w D0, 0x2
00000028 6600 0096 bne +0x98 /* 000000C0 */
0000002C 284A movea.l A4, A2
0000002E 422E FF00 clr.b [A6 - 0x100]
00000032 4EAD 002A jsr [A5 + 0x2A /* export_1 */]
00000036 0C00 0000 cmpi.b D0, 0x0
0000003A 6700 002E beq +0x30 /* 0000006A */
0000003E 0C00 0002 cmpi.b D0, 0x2
00000042 6600 007C bne +0x7E /* 000000C0 */
00000046 264A movea.l A3, A2
00000048 4EAD 0082 jsr [A5 + 0x82 /* export_12 */]
0000004C 264A movea.l A3, A2
0000004E 45EE FF00 lea.l A2, [A6 - 0x100]
00000052 4EAD 008A jsr [A5 + 0x8A /* export_13 */]
00000056 0C42 00FF cmpi.w D2, 0xFF
0000005A 6E00 0064 bgt +0x66 /* 000000C0 */
0000005E 14C2 move.b [A2]+, D2
00000060 4EFA 0002 jmp [PC + 0x2 /* 00000064 */]
label00000064:
00000064 14DB move.b [A2]+, [A3]+
00000066 51CA FFFC dbf D2, -0x6 /* 00000064 */
label0000006A:
0000006A 264C movea.l A3, A4
0000006C 4EAD 008A jsr [A5 + 0x8A /* export_13 */]
00000070 3F06 move.w -[A7], D6
00000072 3C38 0A5A move.w D6, [0x00000A5A /* CurMap */]
00000076 A998 syscall UseResFile
00000078 4280 clr.l D0
0000007A 4284 clr.l D4
0000007C 3002 move.w D0, D2
0000007E 3802 move.w D4, D2
00000080 A122 syscall NewHandle, flags=1
00000082 2848 movea.l A4, A0
00000084 A029 syscall HLock
00000086 2254 movea.l A1, [A4]
00000088 2004 move.l D0, D4
0000008A 204B movea.l A0, A3
0000008C A02E syscall BlockMove/BlockMoveData
0000008E 2F0C move.l -[A7], A4
00000090 2F3C 5049 4354 move.l -[A7], 0x50494354 /* 'PICT' */
00000096 3F05 move.w -[A7], D5
00000098 486E FF00 pea.l [A6 - 0x100]
0000009C A9AB syscall AddResource
0000009E 2F0C move.l -[A7], A4
000000A0 A9B0 syscall WriteResource
000000A2 4267 clr.w -[A7]
000000A4 A9AF syscall ResError
000000A6 204C movea.l A0, A4
000000A8 A02A syscall HUnlock
000000AA 2F0C move.l -[A7], A4
000000AC A9A3 syscall ReleaseResource
000000AE 3F06 move.w -[A7], D6
000000B0 A998 syscall UseResFile
000000B2 0C5F 0000 cmpi.w [A7]+, 0x0
000000B6 6600 0014 bne +0x16 /* 000000CC */
000000BA 4E5E unlink A6
000000BC 7000 moveq.l D0, 0x00
000000BE 4E75 rts
label000000C0:
000000C0 4E5E unlink A6
000000C2 343C 000D move.w D2, 0xD /* '\r' */
000000C6 4EAD 0042 jsr [A5 + 0x42 /* export_4 */]
000000CA 4E75 rts
label000000CC:
000000CC 4E5E unlink A6
000000CE 343C 0005 move.w D2, 0x5
000000D2 4EAD 0042 jsr [A5 + 0x42 /* export_4 */]
000000D6 4E75 rts
000000D8 4E5E unlink A6
000000DA 343C 000E move.w D2, 0xE
000000DE 4EAD 0042 jsr [A5 + 0x42 /* export_4 */]
000000E2 4E75 rts